negotiator.boaframework.offeringstrategy.anac2011
Class NiceTitForTat_Offering
java.lang.Object
negotiator.boaframework.OfferingStrategy
negotiator.boaframework.offeringstrategy.anac2011.NiceTitForTat_Offering
public class NiceTitForTat_Offering
- extends OfferingStrategy
This is the decoupled Offering Strategy for NiceTitForTat (ANAC2011).
The code was taken from the ANAC2011 NiceTitForTat and adapted to work within the BOA framework.
>>Extension of opponent model>>
As default the agent implements a behavior when an opponent model is
used and when not. The only extension we made is to allow to switch
the opponent model.
DEFAULT OM: ScalableBayesianModel
- Author:
- Alex Dirkzwager, Mark Hendrikx
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NiceTitForTat_Offering
public NiceTitForTat_Offering()
- Empty constructor for the BOA framework.
init
public void init(NegotiationSession negotiationSession,
OpponentModel om,
OMStrategy oms,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
throws java.lang.Exception
- Description copied from class:
OfferingStrategy
- Initializes the offering strategy. If parameters are used,
this method should be overridden.
- Overrides:
init in class OfferingStrategy
- Parameters:
negotiationSession - state of the negotiation.om - opponent model which may be used.oms - opponent model strategy which may be used.parameters - optional parameters for the offering strategy.
- Throws:
java.lang.Exception - if the offering strategy fails to initialize.
initializeAgent
public void initializeAgent(NegotiationSession negoSession,
OpponentModel om,
OMStrategy oms)
determineOpeningBid
public BidDetails determineOpeningBid()
- Description copied from class:
OfferingStrategy
- Determines the first bid to be offered by the agent
- Specified by:
determineOpeningBid in class OfferingStrategy
- Returns:
- the opening bid of the agent.
determineNextBid
public BidDetails determineNextBid()
- Description copied from class:
OfferingStrategy
- Determines the next bid the agent will offer to the opponent
- Specified by:
determineNextBid in class OfferingStrategy
- Returns:
- bid to offer to the opponent.
getUtility
public double getUtility(Bid bid)